<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>字符串扩展方法</title>
</head>
<body>
<script>
  //trimStart||trimLeft -- 去除字符串左侧空白 trimEnd||trimRight -- 去除字符串右侧空白
  //trim -- 去除字符串两测空白
  let str ='    I Love You !!    '
  console.log(str)
  console.log(str.trim())
  console.log(str.trimStart())
  console.log(str.trimEnd())
</script>
</body>
</html>